package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.Employee;
import com.iengoo.inductionms.model.Condition;
import com.iengoo.inductionms.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-03-12 21:59
 */
@RestController
@RequestMapping("/input")
public class InputController {
    @Autowired
    private EmployeeService employeeService;

    @GetMapping
    public List<Employee> query(Condition condition, String types) {
//        String[] typeArray = types.split(",");
//        condition.setTypes();
        return employeeService.query(condition);
    }
}
